package com.yunwushanhe.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yunwushanhe.bean.req.CategoryAddReq;
import com.yunwushanhe.bean.req.CategoryPageListReq;
import com.yunwushanhe.bean.req.CategoryUpdateReq;
import com.yunwushanhe.bean.ret.ResponseResult;
import com.yunwushanhe.bean.vo.*;
import com.yunwushanhe.entity.Category;

import java.util.List;

/**
 * 分类表(Category)表服务接口
 *
 * @author makejava
 * @since 2023-08-05 10:50:03
 */
public interface CategoryService extends IService<Category> {

    ResponseResult<List<CategoryVO>> getCategoryList();

    ResponseResult<List<CategoryAdminVO>> listAllCategory();

    ResponseResult<PageVO<List<CategoryPageListVO>>> getCategoryPageList(CategoryPageListReq categoryPageListReq);

    ResponseResult<Object> addCategory(CategoryAddReq categoryAddReq);

    ResponseResult<CategoryUpdateVO> getCategoryUpdateById(Long id);

    ResponseResult<Object> updateCategoryById(CategoryUpdateReq categoryUpdateReq);

    ResponseResult<Object> deleteCategoryById(String id);
}

